<template>
	<view>
		<keep-alive mode="switch">
			<landlord-tabbar :unreadNum="unreadNum" :tabBarIndex="1"></landlord-tabbar>
		</keep-alive>
	</view>
</template>

<script>
export default {
	data() {
		return {
			unreadNum: 0,
		};
	},
	onShow() {
		this.$Api.chat.getOwnerUnReadNumber().then(res => {
			console.log("landlord tabbar unread", res.data.data);
			this.unreadNum = res.data.data
		})
	}
}
</script>

<style lang="scss">

</style>
